public class YeDuck extends Duck{

    public YeDuck(String name) {
        super(name);
        flyBehavior = new NoFly();
    }

    @Override
    public void fly() {
        System.out.print(name);
        flyBehavior.fly();
    }
}
